package pg.entity;


import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import deepr.anno.Property;
import deepr.anno.Schema;
import deepr.anno.SchemaType;
import deepr.handler.OrgTableSchemaHandler;
import lombok.Data;
import neo4j.entity.VisitPlan;

import java.io.Serializable;
import java.util.Date;

@Schema(name = "people", type = SchemaType.PG, handler = OrgTableSchemaHandler.class)
@Data
public class People implements Serializable {

  @Property(primaryKey = true)
  private Long id;
  private JSONObject org;
  @Property
  private String name;

  @Property(schema = VisitPlan.class, forProperty = "visitPlanId")
  private VisitPlan visitPlan;

  @Property
  private Long visitPlanId;

  private Integer normalGrid;
  private Integer microGrid;
  private Integer color;
  private String idCard;
  private Date idCardValid;

  private String ethnic;

  private String degree;

  private Integer gender;

  private Integer type;

  @Property
  private JSONArray label;

  private Date birthday;

  private String phone;

  private String region;

  private String community;

  private String censusType;

  private Boolean inRegion;

  private String political;

  private String relation;

  private String censusIdCard;

  private String address;
  @Property
  private String resident;

  private Integer population;

  private Float avgIncome;

  private Float avgYearIncome;

  private JSONArray family;

  private JSONObject asset;

  private JSONObject healthy;

  private JSONObject demand;

  private Integer status;

  private JSONObject employment;
  @Property
  private JSONObject media;

  private String maritalStatus;

  private String residentState;

  private Date ts;

  private JSONObject visiter;

  private JSONObject otherInfo;

  private Integer flag;

  private Float lat;

  private Float lon;

  private Boolean sync;


}
